package com.server.pinggu.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.commons.lang3.StringUtils;
import com.server.pinggu.mapper.SenFormsMoreMapper;
import com.server.pinggu.domain.SenFormsMore;
import com.server.pinggu.service.ISenFormsMoreService;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ltao
 * @date 2022-10-23
 */
@Service
public class SenFormsMoreServiceImpl extends ServiceImpl<SenFormsMoreMapper, SenFormsMore> implements ISenFormsMoreService {

    @Override
    public List<SenFormsMore> queryList(SenFormsMore senFormsMore) {
        LambdaQueryWrapper<SenFormsMore> lqw = Wrappers.lambdaQuery();
        if (senFormsMore.getFid() != null){
            lqw.eq(SenFormsMore::getFid ,senFormsMore.getFid());
        }
        if (StringUtils.isNotBlank(senFormsMore.getPgyremark())){
            lqw.eq(SenFormsMore::getPgyremark ,senFormsMore.getPgyremark());
        }
        return this.list(lqw);
    }
}